<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Capture an Alice movie as a series of JPEG images in a directory</title>
<link rel=stylesheet href="/TeaParty/uploads/style.css" type="text/css">
<link rel="shortcut icon" href="/schemesAni/side/favicon.ico">
<h2>Capture an Alice movie as a series of JPEG images in a directory</h2>
To capture an Alice movie as a series of JPEG pictures start Alice, play the movie (click on the Play button), and then pause the movie (click on the Pause button).<br>
<br>
<img src="pause.jpg" width=636 height=621 border=0 title="pause.jpg: uploaded 29 September 2007 at 10:34 pm" alt="pause.jpg"><br>
<br>
Double Click on MovieCapture.bat in the bookClasses directory. This will ask you <br>
for the directory to write the JPEG pictures to. <br>
<br>
<img src="directoryPrompt.jpg" width=356 height=136 border=0 title="directoryPrompt.jpg: uploaded 10 September 2007 at 7:09 pm" alt="directoryPrompt.jpg"><br>
<br>
Enter the name of a new directory.  Be sure to either use '/' or '\\' in the pathname since Java treats '\' as a special character.  The directory will be created if it doesn't exist.<br>
<br>
<img src="dirWithFile.jpg" width=356 height=136 border=0 title="dirWithFile.jpg: uploaded 10 September 2007 at 7:12 pm" alt="dirWithFile.jpg"><br>
<br>
Click on the "OK" button.  <br>
<br>
The frame-based movie capturer window will appear.  <br>
<br>
<img src="frame-basedMovieCapturer.jpg" width=475 border=0 title="frame-basedMovieCapturer.jpg: uploaded 29 September 2007 at 10:36 pm" alt="frame-basedMovieCapturer.jpg"><br>
<br>
Position it so that you can see the Alice movie window on the left.<br>
<br>
<img src="beforeCapture.jpg" width=930 height=482 border=0 title="beforeCapture.jpg: uploaded 29 September 2007 at 10:53 pm" alt="beforeCapture.jpg"><br>
<br>
Click on the "Capture Screen" button to see a scaled image of the screen in the frame-based movie capturer window (on the right in the picture below).<br>
<br>
<img src="afterCap2small.jpg" width=800 height=600 border=0 title="afterCap2small.jpg: uploaded 10 September 2007 at 7:54 pm" alt="afterCap2small.jpg"><br>
<br>
Move the cursor to the top left corner of the area to capture and then click and drag the cursor down and to the right to define the bottom right corner of the area to capture.  You will see the area outlined in a black rectangle.  If the area isn't correct click the "Pick Region" button and try again.<br>
<img src="CaptureScreenAndRegion.jpg" width=593 height=663 border=0 title="CaptureScreenAndRegion.jpg: uploaded 29 September 2007 at 10:54 pm" alt="CaptureScreenAndRegion.jpg"><br>
<br>
Once the region that you want to capture has been picked click on the "Start Capture" button and then click on the Alice movie window and click "Restart".  When the Alice movie is done (or at least the part you want to capture) then click on the "Stop Capture" button.<br>
<br>
<img src="stopCapture.jpg" width=600 height=662 border=0 title="stopCapture.jpg: uploaded 29 September 2007 at 10:48 pm" alt="stopCapture.jpg"><br>
<br>
Then click on the "Play Movie" button in the Movie Capture window to see what you have captured.  <b>The movie will appear in a new window: the Movie Player window</b>.  The movie will play one time.<br>
<br>
<img src="prev-next.jpg" width=600 border=0 title="prev-next.jpg: uploaded 10 September 2007 at 7:48 pm" alt="prev-next.jpg"><br>
<br>
Click on the "Prev" and "Next" buttons to see each of the frames.  If you captured extra frames at the beginning then find the true start frame and click "Delete All Previous" to remove the extra frames at the beginning.  If you captured extra frames at the end use the "Prev" and "Next" buttons to find the true end frame and click "Delete All After" to remove the extra frames at the end.  <br>
<br>
To write out a Quicktime movie from the frames click on "Write Quicktime". To write out an AVI movie click on "Write AVI".  The button will be grayed out while the movie is being written.  <br>
<br>
<img src="gray.jpg" width=559 height=439 border=0 title="gray.jpg: uploaded 29 September 2007 at 10:59 pm" alt="gray.jpg"><br>
<br>
The button will look normal when it is finished (not grayed out).<br>
 <br>
<img src="buttonNotGrey2.jpg" width=559 border=0 title="buttonNotGrey.jpg: uploaded 29 September 2007 at 10:56 pm" alt="buttonNotGrey.jpg"><br>
<br>
The movies are written to the same directory that the frames were saved to.  Close the Movie Player and Movie Capture windows.  You can play the movie again by double clicking on MoviePlayer.bat and selecting the directory where you stored the JPEG frames.<br>
<br>

<hr size=2 noshade>
Last modified <em>29 September 2007</em> at <em>11:00 pm</em> by <em>ericson<a class="external" href="mailto:ericson@cc.gatech.edu" title="ericson@cc.gatech.edu: from user-1121ejn.dsl.mindspring.com">@</a></em></div>
</body>
</html>